package com.itheima.collection;

//import jdk.incubator.foreign.Addressable;

import java.util.ArrayList;
import java.util.Collection;

public class A05_CollectionDemo05 {
    public static void main(String[] args) {
        //创建集合添加元素
        Collection<String> coll = new ArrayList<>();
        coll.add("aaa");
        coll.add("bbb");
        coll.add("ccc");
        coll.add("ddd");

//        for (String s : coll) {
//            System.out.println(s);
//        }

        for (String s : coll) {
            System.out.println(s);
        }
    }
}
